package com.cn.study005;

import java.util.Scanner;

/**
 * @author lw
 * @ClassName Test5005.java
 * @Description
 * @createTime 2023年05月11日 16:18:00
 */
public class Test5005 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String str = null;
        do {
            System.out.println("张浩上机编写程序！");
            System.out.println("老师检查是否合格！(y/n):");
            str = sc.next();
        }while (str.equals("n"));
        System.out.println("合格！");
    }
}
